/**
 * Created by root on 14-7-22.
 */
(function(){
 var canvas = document.getElementById('canvas')
   , context = canvas.getContext('2d');

  context.font = '50px Arial';
  context.fillStyle = '#00ff00';
  context.strokeStyle = '#ff0000';
  context.fillText('Hello World', canvas.width/2-150, canvas.height/2+25);
  context.strokeText('Hello World', canvas.width/2-150, canvas.height/2+25);

})();